﻿using System;
using System.ServiceModel;

namespace OCXS.OCXSServiceLibrary.OPCXMLDA10 {

    [MessageContract(
        WrapperName = "ReadResponse", 
        WrapperNamespace = "http://opcfoundation.org/webservices/XMLDA/1.0/", 
        IsWrapped = true)]
    public class ReadResponse {

        [MessageBodyMember(Name = "ReadResult", Order = 0)]
        public OCXS.OCXSServiceLibrary.OPCXMLDA10.ReplyBase ReadResult;

        [MessageBodyMember(Name = "RItemList", Order = 1)]
        public OCXS.OCXSServiceLibrary.OPCXMLDA10.ReplyItemList RItemList;

        [MessageBodyMember(Name = "Errors", Order = 2)]
        public OPCError[] Errors;

        public ReadResponse() {
        }

        public ReadResponse(OCXS.OCXSServiceLibrary.OPCXMLDA10.ReplyBase ReadResult, OCXS.OCXSServiceLibrary.OPCXMLDA10.ReplyItemList RItemList, OPCError[] Errors) {
            this.ReadResult = ReadResult;
            this.RItemList = RItemList;
            this.Errors = Errors;
        }
    }
}
